﻿<?php get_header();?>
<?php get_sidebar();?>
<div id="primary">
	<div class="post-nav">
		<span class="previous floatleft"><?php previous_posts_link('Bài viết trước');?></span>
		<span class="next floatright"><?php next_posts_link('Bài viết tiếp');?></span>
	</div>
	<!-- end .post-nav--> 
	<div id="searchResult">
		<h3>Kết quả tìm kiếm</h3>
		<?php if(have_posts()):while(have_posts()):the_post();?>  
		<div class="search-item">
			<?php $thumb = get_post_meta($post->ID,'hình đại diện',true);?>
			<img src="<?php bloginfo('stylesheet_directory')?>/timthumb.php?src=<?php echo $thumb;?>&amp;h=100;&amp;w=100;zc=1" alt="avatar"/>
			<h3><a href="<?php the_permalink();?>"><?php the_title();?></a></h3>
			<p class="content">
				<?php the_content_rss('',false,'',40);?> 
			</p>	
			<div class="cl clear"></div>
		</div>
		<!-- end #.search-item-->
		<?php endwhile;?>
		<?php else:?>
		<p>Không có bài viết nào !</p>
		<?php endif?>
	</div> <!-- end #searchResult-->
</div>
<!-- end primary-->
<?php get_footer();?>

